﻿using System;
using Xunit.Abstractions;
using System.IO;

namespace AbpProjectTemplate.Tests
{
    public class TestStringWriter : StringWriter
    {
        private readonly ITestOutputHelper _output;
        public TestStringWriter(ITestOutputHelper output)
        {
            this._output = output;
        }

        public override void WriteLine(string msg)
        {
            _output.WriteLine($"[{DateTime.Now.ToString("HH:mm:ss.fff")}]{msg}");
        }
    }
}